﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;

namespace HCQ2_Model.VRQDMeta.InputDto._20220418
{
    /// <summary>
    ///  保存视频动态点赞
    /// </summary>
    public class SaveVideoNewsStarInput
    {
        /// <summary>
        ///  动态ID
        /// </summary>
        [Required]
        [RegularExpression("^([1-9][0-9]*)$", ErrorMessage = "请传入正确的动态ID")]
        public int newsID { get; set; }
        /// <summary>
        ///  用户编码
        /// </summary>
        [Required(ErrorMessage = "请传入用户编码")]
        public string userid { get; set; }
        /// <summary>
        ///  类别  【0=取消点赞，1=添加点赞】
        /// </summary>
        [Required]
        [RegularExpression("^(0|1)$", ErrorMessage = "类别  0=取消点赞，1=添加点赞")]//验证手机
        public int type { get; set; }
    }
}